﻿using Microsoft.Extensions.Options;
using System;

namespace IOP.Orleans.Service.MessageHub
{
    /// <summary>
    /// 消息总线服务配置
    /// </summary>
    public class MessageHubServiceOption : IOptions<MessageHubServiceOption>
    {
        /// <summary>
        /// 健康检查周期
        /// </summary>
        public TimeSpan HealthCheckPeriod { get; set; } = TimeSpan.FromMilliseconds(30000);

        /// <summary>
        /// 消息总线服务配置
        /// </summary>
        public MessageHubServiceOption Value => this;
    }
}
